package org.jsola.hr.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.vo.BaseVO;

import java.util.List;

/**
 * @author lyh
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "导入Excel返回实体")
@Data
public class ImportExcelResultListVO <T> extends BaseVO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("导入总条数")
    private Integer allCount;

    @ApiModelProperty("导入失败条数")
    private Integer errorCount;

    @ApiModelProperty("导入成功条数")
    private Integer successCount;

    @ApiModelProperty("表头(如果导入的Excel实体用Map接收 可能会用到这个参数)")
    private List<String> headList;

    @ApiModelProperty("导入失败列表")
    private List<T> errorList;
}
